package com.hskn.hss.module.user.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.hskn.hss.module.depart.entity.SysDepart;
import com.hskn.hss.module.menu.entity.SysMenu;
import com.hskn.hss.module.role.entity.SysRole;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

/**
 * <p>
 *
 * </p>
 *
 * @author hskn
 * @since 2020-11-16
 */
@Data
@EqualsAndHashCode(callSuper = false)
public class UserFull implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "uid", type = IdType.ASSIGN_UUID)
    private String uid;

    private String account;

    private String password;

    private String salt;

    private String name;

    private String phone;

    private Integer isDepAdmin;

    private Integer platform;

    private String remark;

    private String userphoto;

    private List<SysRole> roles;

    private List<SysMenu> menus;

    private SysDepart depart;

    private Patrol patrol;

    private Date createTime;

    private Date updateTime;

    private Object permissions;

    private Integer isAdmin;
}
